package cn.lbd.kill.model.mapper;

import cn.lbd.kill.model.dto.KillSuccessUserInfo;
import cn.lbd.kill.model.entity.ItemKillSuccess;
import cn.lbd.kill.model.entity.ItemKillSuccessExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface ItemKillSuccessMapper {
    long countByExample(ItemKillSuccessExample example);

    int deleteByExample(ItemKillSuccessExample example);

    int deleteByPrimaryKey(String code);

    int insert(ItemKillSuccess record);

    int insertSelective(ItemKillSuccess record);

    List<ItemKillSuccess> selectByExample(ItemKillSuccessExample example);

    ItemKillSuccess selectByPrimaryKey(String code);

    int updateByExampleSelective(@Param("record") ItemKillSuccess record, @Param("example") ItemKillSuccessExample example);

    int updateByExample(@Param("record") ItemKillSuccess record, @Param("example") ItemKillSuccessExample example);

    int updateByPrimaryKeySelective(ItemKillSuccess record);

    int updateByPrimaryKey(ItemKillSuccess record);

    int batchUpdate(@Param("recordList") List<ItemKillSuccess> recordList);

    int batchInsert(@Param("recordList") List<ItemKillSuccess> recordList);

    int batchDelete(@Param("ids") String[] ids);

    int selectCountByKill(@Param("killId") Integer killId,@Param("userId") Integer userId);

    KillSuccessUserInfo selectByCode(String orderNo);

    int expireOrder(String orderNo);

    List<ItemKillSuccess> schedulerExpireOrder();
}